SPRITE GREEN

This command will return the diffuse Green value of the specified sprite.

  Syntax
Return Integer=SPRITE GREEN(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number

  Returns

This command will return the diffuse Green value of the specified sprite

  Description

The value determines how much green is used in the sprite, 255 being completely used. You should specify the Sprite Number as an integer value.

  Example Code
load image "man.bmp",1
cls
sprite 1,100,100,1
print "sprite green value ",sprite green(1)
do
loop
end
  See also

SPRITE Commands Menu
Index